package xin.ganbo.enums;

/**
 * 系统异常提示错误码
 * @author ganbo E-mail:bo.gan@56qq.com
 * @since 2017-09-29 14:01
 */

public enum CommonErrorCode {

    /** 数据不存在 */
    DATA_NOTE_EXIST("xxxx404", "数据不存在"),

    /** 操作成功 */
    OK("200", "ok"),

    /** 系统异常 */
    SYSTEM_EXCEPTION("400", "系统异常"),

    /** 系统上传文件失败 */
    UPLOAD_FILE_ERROR("500", "上传文件失败"),;

    private String code;
    private String msg;

    CommonErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
